package com.java.bean;

public class Message {
    //{status:0,result:"",data:{}}

    //状态码 0 或 -1 代表成功和失败
    private int status;
    //消息内容
    private String result;
    //消息所携带的一组数据
    private Object data;

    @Override
    public String toString() {
        return "Message{" +
                "status=" + status +
                ", result='" + result + '\'' +
                ", data=" + data +
                '}';
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Message(String result) {
        this.result = result;
    }

    public Message(int status) {
        this.status = status;
    }

    public Message(int status, String result) {
        this.status = status;
        this.result = result;
    }

    public Message(){

    }


}
